<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div>
	<form id="f_target" action="<c:url value='/admin/cases/target/save.do'/>" method="post">
		<input type="hidden" name="scenarioId" value="${scenarioId}">
		<input type="hidden" name="target.targetId" value="${target.targetId}">
		<table id="t_target_detail">
			<tr>
				<th width="75px">对象名称</th>
				<td>
					<input type="text" name="target.targetName" value="${target.targetName}"/>
				</td>
			</tr>
			<tr>
				<th width="75px">是否可见</th>
				<td>
					<select name="target.visible">
						<option value="1" <c:if test="${target.visible ==1}">selected="selected"</c:if>>可见</option>
						<option value="-1" <c:if test="${target.visible ==-1}">selected="selected"</c:if>>不可见</option>
					</select>
				</td>
			</tr>
			<tr>
				<th width="75px">是否可用</th>
				<td>
					<input type="checkbox" id="f_target_enabled" name="target.enabled" value="1"/>
					<script type="text/javascript">
						var targetEnabled = "<c:out value='${target.enabled}' />";
						var targetEnabledValue = parseInt(targetEnabled);
						if(targetEnabledValue == 1){
							$("#f_target_enabled").attr("checked",true);
					  	}
					</script>
				</td>
			</tr>
			<tr>
				<td>
					<input type="submit" value="保存">
				</td>
			</tr>
		</table>
	</form>
</div>